<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="probiz" tagdir="/WEB-INF/tags/probiz" %>
<%@ taglib prefix="customer" tagdir="/WEB-INF/tags/customer"%>
<title><fmt:message key="theme.list.title"/></title>

<c:set var="buttons" >
	<probiz:iconBtn btnType="add" onclick="location.href='${ctxPath}/content/theme.html?doAction=addTheme'" />
</c:set>

<c:set var="checkAll">
	<input type="checkbox" name="allbox" onclick="checkAll(this.form)" style="margin: 0 0 0 0px" />
</c:set>

<content tag="description"><fmt:message key="customer.list.header"/></content>
<content tag="buttons">
	<c:out value="${buttons}" escapeXml="false"/>
</content>



<form class="mainForm" name="themeListFrm" method="post">
<div class="data">
<display:table name="${themeList}" cellspacing="0" cellpadding="0" uid="themeItem"  class="list_table"
	export="false" requestURI="" >
	
    <display:column sortable="false" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="theme.screenshot">
    	<img style="border:1px solid #666666" width="100" height="100" src="${themeItem.smallScreenshotUrl}" alt="${themeItem.themeName}" />
    </display:column>
    <display:column sortable="false" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="theme.themeName">
		<ul class="theme_info1">
       		<li><b><fmt:message key="theme.themeName"/>：</b><i>${themeItem.themeName}</i></li>
        	<li><b><fmt:message key="theme.author"/>：</b><i>${themeItem.author}</i></li>
			<li><b><fmt:message key="theme.createTime"/>：</b><i>${themeItem.createTime}</i></li>
        	<li><b><fmt:message key="theme.description"/>：</b><i>${themeItem.description}</i></li>
		</ul>
    </display:column>

	<display:column  titleKey="appUser.status" media="html" decorator="com.probiz.estore.core.decorator.TblColumnDecorator">
		
		<c:choose>
			<c:when test="${themeItem.active}"><span class="green"><fmt:message key="theme.status.isActive"/></span></c:when>
			<c:otherwise>
                <a href="${ctxPath}/content/theme.html?doAction=activeTheme&themeName=${themeItem.themeName}" class="green">
                    <fmt:message key="theme.active"/></a>
                <a href="${ctxPath}/content/theme.html?doAction=deleteTheme&themeName=${themeItem.themeName}" class="red">
                    <fmt:message key="theme.delete"/></a>
            </c:otherwise>
		</c:choose>
	</display:column>
	

</display:table>

</div>

</form>
<script type="text/javascript">

highlightTableRows("themeItem");


</script>


